package com.example.demo.feign;

import com.example.demo.feign.impl.TestFeignImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zhaiding
 * @since 2019/5/2
 */
@FeignClient(value = "test", url = "${url.address}", fallback = TestFeignImpl.class)
public interface ITestFeign {
    @GetMapping(value = "/service/getIpInfo.php")
    String getIpAddress(@RequestParam String ip);
}
